import {
  ChromeFilled,
  CrownFilled,
  SmileFilled,
  TabletFilled,
  BankOutlined,
  BarsOutlined,
  SettingOutlined,
  UserOutlined,
  HomeOutlined
} from '@ant-design/icons';

export default {
  route: {
    path: '/',
    routes: [
      {
        path: '/index/welcome',
        name: '设置',
        icon: <SettingOutlined />,
      },
      {
        path: '/index/houses',
        name: '楼盘',
        icon: <BankOutlined />,
        access: 'canAdmin',
        routes: [
          {
            path: '/index/houses',
            name: '楼盘管理',
            icon: <BarsOutlined />,
            routes:[
              {
                path: '/index/houses/houselist',
                name: '楼盘列表',
                icon: <CrownFilled />,
              },
              {
                path: '/index/houses/addhouse',
                name: '添加楼盘',
                icon: <CrownFilled />,
              },
            ]
          },
          {
            path: '/index/developer',
            name: '开发商',
            icon: <BarsOutlined />,
            routes:[
              {
                path: '/index/developer/devlist',
                name: '开发商列表',
                icon: <CrownFilled />,
              },
            ]
          },
          {
            path: '/index/group',
            name: '团购管理',
            icon: <BarsOutlined />,
            routes:[
              {
                path: '/index/group/addgroup',
                name: '添加团购',
                icon: <CrownFilled />,
              },
              {
                path: '/index/group/grouplist',
                name: '团购列表',
                icon: <CrownFilled />,
              },
            ]
          },
        ],
      },
      {
        path: '/index/service',
        name: '客服',
        icon: <UserOutlined />,
        access: 'canAdmin',
        routes: [
          {
            path: '/index/service/serviceinfo',
            name: '客服信息总览',
            icon: <BarsOutlined />,
          },
          {
            path: '/index/service/servicelist',
            name: '客服列表',
            icon: <BarsOutlined />,
          },
          {
            path: '/index/service/index',
            name: '会话列表',
            icon: <BarsOutlined />,
            routes:[
              {
                path: '/index/service/visitorlist',
                name: '游客列表',
                icon: <BarsOutlined />,
              },
              {
                path: '/index/service/servicelog',
                name: '服务记录',
                icon: <BarsOutlined />,
              },
              {
                path: '/index/service/chatlog',
                name: '聊天记录',
                icon: <BarsOutlined />,
              },
              {
                path: '/index/service/im',
                name: '客服聊天',
                icon: <BarsOutlined />,
              },
            ]
          },
        ],
      },
      // 二手/出租
      {
        path: '/index/secound',
        name: '二手/出租',
        icon: <HomeOutlined />,
        routes: [
          {
            path: '/index/secound/village',
            name: '小区管理',
            icon: <BarsOutlined />,
            routes:[
              {
                path: '/index/secound/villagelist',
                name: '小区管理',
                icon: <BarsOutlined />,
              }
            ]
          },
          {
            path: '/index/secound/secoundhand',
            name: '二手房',
            icon: <BarsOutlined />,
            routes:[
              {
                path: '/index/secound/housemanage',
                name: '房源管理',
                icon: <BarsOutlined />,
              },
              {
                path: '/index/secound/addhouse',
                name: '添加房源',
                icon: <BarsOutlined />,
              }
            ]
          },
          {
            path: '/index/secound/hire',
            name: '出租房',
            icon: <BarsOutlined />,
            routes:[
              {
                path: '/index/secound/hirehouse',
                name: '房源管理',
                icon: <BarsOutlined />,
              },
              {
                path: '/index/secound/addhire',
                name: '添加房源',
                icon: <BarsOutlined />,
              },
            ]
          },
        ],
      },
      //商业
      {
        path: '/index/commerce',
        name: '商业',
        icon: <HomeOutlined />,
        routes: [
          {
            path: '/index/commerce/office',
            name: '写字楼',
            icon: <BarsOutlined />,
            routes:[
              {
                path: '/index/commerce/officesale',
                name: '出售管理',
                icon: <BarsOutlined />,
              },
              {
                path: '/index/commerce/officehire',
                name: '出租管理',
                icon: <BarsOutlined />,
              }
            ]
          },
          {
            path: '/index/commerce/shops',
            name: '商铺',
            icon: <BarsOutlined />,
            routes:[
              {
                path: '/index/commerce/shopssale',
                name: '出售管理',
                icon: <BarsOutlined />,
              },
              {
                path: '/index/commerce/shopshire',
                name: '出租管理',
                icon: <BarsOutlined />,
              },
            ]
          },
        ],
      },
      // {
      //   name: '列表页',
      //   icon: <TabletFilled />,
      //   path: '/list',
      //   component: './ListTableList',
      //   routes: [
      //     {
      //       path: '/list/sub-page',
      //       name: '列表页面',
      //       icon: <CrownFilled />,
      //       routes: [
      //         {
      //           path: 'sub-sub-page1',
      //           name: '一一级列表页面',
      //           icon: <CrownFilled />,
      //           component: './Welcome',
      //         },
      //         {
      //           path: 'sub-sub-page2',
      //           name: '一二级列表页面',
      //           icon: <CrownFilled />,
      //           component: './Welcome',
      //         },
      //         {
      //           path: 'sub-sub-page3',
      //           name: '一三级列表页面',
      //           icon: <CrownFilled />,
      //           component: './Welcome',
      //         },
      //       ],
      //     },
      //     {
      //       path: '/list/sub-page2',
      //       name: '二级列表页面',
      //       icon: <CrownFilled />,
      //       component: './Welcome',
      //     },
      //     {
      //       path: '/list/sub-page3',
      //       name: '三级列表页面',
      //       icon: <CrownFilled />,
      //       component: './Welcome',
      //     },
      //   ],
      // },
      // {
      //   path: 'https://ant.design',
      //   name: 'Ant Design 官网外链',
      //   icon: <ChromeFilled />,
      // },
    ],
  },
  location: {
    pathname: '/',
  },
  //   左上角
  appList: [
    {
      icon: 'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg',
      title: 'Ant Design',
      desc: '杭州市较知名的 UI 设计语言',
      url: 'https://ant.design',
    },
    {
      icon: 'https://gw.alipayobjects.com/zos/antfincdn/FLrTNDvlna/antv.png',
      title: 'AntV',
      desc: '蚂蚁集团全新一代数据可视化解决方案',
      url: 'https://antv.vision/',
      target: '_blank',
    },
    {
      icon: 'https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg',
      title: 'Pro Components',
      desc: '专业级 UI 组件库',
      url: 'https://procomponents.ant.design/',
    },
    {
      icon: 'https://img.alicdn.com/tfs/TB1zomHwxv1gK0jSZFFXXb0sXXa-200-200.png',
      title: 'umi',
      desc: '插件化的企业级前端应用框架。',
      url: 'https://umijs.org/zh-CN/docs',
    },

    {
      icon: 'https://gw.alipayobjects.com/zos/bmw-prod/8a74c1d3-16f3-4719-be63-15e467a68a24/km0cv8vn_w500_h500.png',
      title: 'qiankun',
      desc: '可能是你见过最完善的微前端解决方案🧐',
      url: 'https://qiankun.umijs.org/',
    },
    {
      icon: 'https://gw.alipayobjects.com/zos/rmsportal/XuVpGqBFxXplzvLjJBZB.svg',
      title: '语雀',
      desc: '知识创作与分享工具',
      url: 'https://www.yuque.com/',
    },
    {
      icon: 'https://gw.alipayobjects.com/zos/rmsportal/LFooOLwmxGLsltmUjTAP.svg',
      title: 'Kitchen ',
      desc: 'Sketch 工具集',
      url: 'https://kitchen.alipay.com/',
    },
    {
      icon: 'https://gw.alipayobjects.com/zos/bmw-prod/d3e3eb39-1cd7-4aa5-827c-877deced6b7e/lalxt4g3_w256_h256.png',
      title: 'dumi',
      desc: '为组件开发场景而生的文档工具',
      url: 'https://d.umijs.org/zh-CN',
    },
  ],
};
